package org.polar.luchi.bean;

import com.amap.mapapi.core.GeoPoint;

public class GeoPointInfo implements java.io.Serializable{
	private int lat;
	private int lon;
	public int getLat() {
		return lat;
	}
	public void setLat(int lat) {
		this.lat = lat;
	}
	public int getLon() {
		return lon;
	}
	public void setLon(int lon) {
		this.lon = lon;
	}
 
	public GeoPoint toGeoPoint(){
		GeoPoint point = new GeoPoint(lat,lon);
		return point;
	}

	public void  fromGeoPoint(GeoPoint point){ 
		if(point == null){
			return;
		}
		lat = point.getLatitudeE6();
		lon = point.getLongitudeE6();
	}
}
